<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 18-12-18
 * Time: 上午10:49
 */

namespace common\models;


/**
 * Class MultiMediaOrder
 * @package common\models
 *
 * @property Custom $custom
 * @property MultiMediaOrderLog[] $multiMediaOrderLogs
 */
class MultiMediaOrder extends \common\models\base\MultiMediaOrder
{
    /**
     * @return \yii\db\ActiveQuery
     */
    public function getCustom()
    {
        return $this->hasOne(Custom::className(), ['id' => 'custom_id']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getMultiMediaOrderLogs()
    {
        return $this->hasMany(MultiMediaOrderLog::className(), ['multi_media_order_id' => 'id']);
    }
}